from flask import Flask

from register import app_register 

from details.detail_page_flask import app_detail

from api_current import app_current

from index_api import app_index

from api_update_need import app_update_need

app = Flask(__name__)

app.register_blueprint(app_register )#注册

app.register_blueprint(app_detail)#详情页面接口

app.register_blueprint(app_current)#openid验证接口

app.register_blueprint(app_index)#首页接口

app.register_blueprint(app_update_need)#发布接口

@app.route('/')
def index():

    return "<a href='https://gitee.com/zhangpengju/test_AB/tree/master/%E6%8E%A5%E5%8F%A3%E6%96%87%E6%A1%A3'>接口文档</a>"

if __name__ == '__main__':
    
    app.run(debug=True)
